import { Router } from 'express';
import { authMiddleware } from '../middlewares/auth.middleware';
import {
  sendMessage,
  getMessageList,
  recallMessage
} from '../controllers/message.controller';

const router = Router();

router.use(authMiddleware);

router.post('/send', sendMessage);
router.get('/list', getMessageList);
router.post('/recall', recallMessage);

export default router;
